package com.shcz.migu.utils;

import android.os.Environment;

import java.text.SimpleDateFormat;
import java.util.Locale;

/**
 * Created by chenhangye on 2016/10/6.
 */

public class FileOperation {
    public static String getPath(){
        String outputPath= Environment.getExternalStorageDirectory()+"/0"+
                new SimpleDateFormat("yyyyMMddHHmmssSSS", Locale.CHINA).format(System
                        .currentTimeMillis()) + ".pcm";
        return outputPath;
    }
    public static String getPath2(){
        String outputPath= Environment.getExternalStorageDirectory()+"/0"+
                new SimpleDateFormat("yyyyMMddHHmmssSSS", Locale.CHINA).format(System
                        .currentTimeMillis())+"21ddd" + ".pcm";
        return outputPath;
    }
    public static String getPath3(){
        String outputPath= Environment.getExternalStorageDirectory()+"/0"+
                new SimpleDateFormat("yyyyMMddHHmmssSSS", Locale.CHINA).format(System
                        .currentTimeMillis())+"33ddd" + ".pcm";
        return outputPath;
    }
    public static String getPath4(){
        String outputPath= Environment.getExternalStorageDirectory()+"/0"+
                new SimpleDateFormat("yyyyMMddHHmmssSSS", Locale.CHINA).format(System
                        .currentTimeMillis())+"44ddd" + ".pcm";
        return outputPath;
    }
    public static String getPathWav(){
        String outputPath= Environment.getExternalStorageDirectory()+"/0"+
                new SimpleDateFormat("yyyyMMddHHmmssSSS", Locale.CHINA).format(System
                        .currentTimeMillis())+"44ddd" + ".wav";
        return outputPath;
    }
    public static String getPathPng(){
        String outputPath= Environment.getExternalStorageDirectory()+"/0"+
                new SimpleDateFormat("yyyyMMddHHmmssSSS", Locale.CHINA).format(System
                        .currentTimeMillis()) + ".jpg";
        return outputPath;
    }
}
